package com.share.schedule.simple.schedule;

import lombok.extern.slf4j.Slf4j;

import java.util.LinkedList;
import java.util.List;

/**
 * @author 01401061 - 孙艳强
 * @date 2020/10/28 16:07
 */
@Slf4j
public class TemplateJob extends BaseJob {
    @Override
    public String doJob() throws Exception {
        int pageSize = 50;
        int pageNum = 1;
        List<Object> list = null;
        log.info("爬取任务开始");
        while (true) {
            list = new LinkedList<>();
            if (list == null || list.isEmpty()) {
                break;
            }

            log.info("第" + pageNum + "页,待处理" + list.size() + "条,实际更新" + 1 + "条");
            pageNum = pageNum + 1;
        }
        log.info("爬取任务结束");
        return null;
    }
}
